<template>
  <el-card>
    <div class="box">
      <el-avatar :size="100" :src="userStore.avatar" />
      <div class="bot">
        <h3>{{ getTime() }}好呀！ {{ userStore.username }}</h3>
        <p>{{ setting.title }}</p>
      </div>
    </div>
  </el-card>
  <div class="bg">
    <svg-icon name="welcome" width="500px" height="400px"></svg-icon>
  </div>
</template>
<script setup lang="ts">
import useUserStore from "@/store/modules/user";
import { getTime } from "@/utlis/time";
import setting from "@/setting";
const userStore = useUserStore();
</script>
<style lang="scss" scoped>
.box {
  display: flex;
  align-items: center;

  .bot {
    margin-left: 20px;

    h3 {
      font-size: 30px;
      font-weight: bold;
      margin-bottom: 20px;
    }
  }
}

.bg {
  display: flex;
  justify-content: center;
}
</style>
